package com.gnerv.sylvanas.business.manage.model.dto;

import com.gnerv.sylvanas.business.manage.model.bo.DictItemBO;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;

/**
 * @author Gnerv LiGen
 */
@Data
public class DictItemCreateDTO implements Serializable {

    private String dictUkId;
    private String code;
    private String name;
    private String value;
    private String status;
    private Integer sort;

    public DictItemBO toDictItemBO() {
        DictItemBO dictItemBO = new DictItemBO();
        BeanUtils.copyProperties(this, dictItemBO);
        return dictItemBO;
    }
}